﻿using MP_Game.Protos.V1;
using MP_Network;

namespace MP_ChatServer
{
    internal class ChatServer
    {
        static async Task Main(string[] args)
        {
            var app = new GrpcServer(args)
                .StartServer(NetConst.IPHost, NetConst.ChatServerGrpcPort);

            NetClient client = new NetClient(NetConst.IPHost, NetConst.CenterServerPort, CliType.ChatServer);
            client.StartConnect();

            await app.WaitForShutdownAsync();
        }
    }
}
